package com.settlement.system.service.impl;

import com.settlement.system.mapper.YgOrderReturnMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.YgOrderReturn;
import com.settlement.system.service.IYgOrderReturnService;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;
import java.util.Map;

/**
 * yg销售退货订单明细 服务实现类
 * @author Ximi
 * @since 2020-04-15
 */
@Service
public class YgOrderReturnServiceImpl extends BaseServiceImpl implements IYgOrderReturnService {

    @Resource
    private YgOrderReturnMapper ygOrderReturnMapper;

    @Override
    public BaseMapper init() {
        return ygOrderReturnMapper;
    }

    /**
     * 获取合计
     * @param params
     * @return
     * @throws ServiceException
     */
    @Override
    public YgOrderReturn selectFoot(Map<String, Object> params) throws ServiceException {
        try {
            return ygOrderReturnMapper.selectFoot(params);
        } catch (Exception e) {
           throw  new ServiceException(e);
        }
    }
}

